for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/**
* @fileoverview Externs for alawmulaw 5.0
*
* @see https://github.com/rochars/alawmulaw
* @externs
*/
var alaw = {};
var mulaw = {};
// A-Law
* Encode a 16-bit linear PCM sample as 8-bit A-Law.
* @param {number} sample A 16-bit PCM sample
* @return {number}
alaw.encodeSample = function(sample) {}
* Decode a 8-bit A-Law sample as 16-bit PCM.
* @param {number} aLawSample The 8-bit A-Law sample
alaw.decodeSample = function(aLawSample) {}
* Encode 16-bit linear PCM samples as 8-bit A-Law samples.
* @param {!Int16Array} samples A array of 16-bit PCM samples.
* @return {!Uint8Array}
alaw.encode = function(samples) {}
* Decode 8-bit A-Law samples into 16-bit linear PCM samples.
* @param {!Uint8Array} samples A array of 8-bit A-Law samples.
* @return {!Int16Array}
alaw.decode = function(samples) {}
// mu-Law
* Encode a 16-bit linear PCM sample as 8-bit mu-Law.
mulaw.encodeSample = function(sample) {}
* Decode a 8-bit mu-Law sample as 16-bit PCM.
* @param {number} muLawSample The 8-bit mu-Law sample
mulaw.decodeSample = function(muLawSample) {}
* Encode 16-bit linear PCM samples into 8-bit mu-Law samples.
mulaw.encode = function(samples) {}
* Decode 8-bit mu-Law samples into 16-bit PCM samples.
* @param {!Uint8Array} samples A array of 8-bit mu-Law samples.
mulaw.decode = function(samples) {}